<?php
 switch($type){
	case 'link':
?>
	<a href='#' id='<?php echo $this->id; ?>'>Загрузить файл</a>
<?	
	break;
	default :
?>
	<input type='file' id='<?php echo $this->id; ?>'/>
<?php 
	break;
}
?>

<?php if($options['show_loader']): ?>
	<img src='<?php echo $this->assets; ?>/loader.gif' style='display: none;' class='loader' />
<?php endif; ?>

<?php if($options['show_queue']): ?>
<div id='upload_queue'></div>
<?php endif; ?>
<?php if($options['show_result']): ?>
<div id='upload_result'></div>
<?php endif; ?>
